home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMIGA PD 1
/
AMIGA-PD-1.iso
/
NetBSD
/
docs-netbsd
/
Mailinglist-Archive
/
1994-08.gz
/
1994-08
/
000184_owner-current-u…s.berkeley.edu_Thu Aug 4 06:43:55 1994.msg
< prev
next >
Wrap
Text File
|
1994-10-16
|
831b
|
30 lines
From: "John F. Woods" <jfw@jfwhome.funhouse.com>
To: current-users@sun-lamp.cs.berkeley.edu
Subject: sort is broken + fix
Sender: owner-current-users@sun-lamp.cs.berkeley.edu
sort doesn't work for multiple files if one of the files is stdin (-).
I've just submitted a PR for this, including the following fix:
*** sort.c.orig Wed Aug 3 23:02:40 1994
--- sort.c Wed Aug 3 23:02:42 1994
***************
*** 1487,1496 ****
if (*s)
badfieldspec (argv[i]);
}
! else if (argv[i][0] == '-')
{
- if (!strcmp ("-", argv[i]))
- break;
s = argv[i] + 1;
if (digits[UCHAR (*s)])
{
--- 1487,1494 ----
if (*s)
badfieldspec (argv[i]);
}
! else if (argv[i][0] == '-' && argv[i][1])
{
s = argv[i] + 1;
if (digits[UCHAR (*s)])
{